# Contributor: Matthias Ahouansou <matthias@ahouansou.cz>
# Maintainer: Matthias Ahouansou <matthias@ahouansou.cz>
pkgname=tree-sitter-c-sharp
pkgver=0.21.2
pkgrel=0
pkgdesc="C# Grammar for tree-sitter"
url="https://github.com/tree-sitter/tree-sitter-c-sharp"
arch="all"
license="MIT"
makedepends="tree-sitter-dev"
install_if="tree-sitter-grammars"
source="$pkgname-$pkgver.tar.gz::https://github.com/tree-sitter/tree-sitter-c-sharp/archive/refs/tags/v$pkgver.tar.gz"
options="!check" # no tests for shared lib

build() {
	abuild-tree-sitter build
}

package() {
	DESTDIR="$pkgdir" abuild-tree-sitter install
}

sha512sums="
7bab224ad23c33a982f8690c5887f7904e7498cac94cf7a28a313d2666f62d84c68035b15f6812c21aecb89c42d77f3bd697d208081dd9b11d1e3b55a5cbcf6b  tree-sitter-c-sharp-0.21.2.tar.gz
"
